import { Router } from 'express';
import { UserController } from '../controllers/user-controller';
import { authMiddleware } from '../middleware/auth'; // 导入auth中间件

const router: Router = Router();

router.post('/login', UserController.login);
router.post('/logout', authMiddleware, UserController.logout);

export default router;
